home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / piemnsrc.sit / Pie Popups.c < prev    next >
C/C++ Source or Header  |  1989-09-14  |  557b  |  30 lines

  1. /*
  2.  * Pie Popups.c:    This is a test program used to test the pie popup
  3.  *                    code as a non-XCMD so that we can use LSC's debugger.
  4.  */
  5.  
  6. main()
  7. {
  8.     Point    windowLoc;
  9.     char    buffer[80];
  10.     int        num_items;
  11.     
  12.     MaxApplZone();    
  13.     InitGraf(&thePort);
  14.     InitFonts();
  15.     FlushEvents(everyEvent, 0);
  16.     InitWindows();
  17.     InitMenus();
  18.     TEInit();
  19.     InitDialogs(0L);
  20.     InitCursor();
  21.     
  22.     strcpy(buffer,"<BITEM 1;^1ITEM 2;!2ITEM 3;/BITEM 4;(ITEM 5");
  23.     num_items = ParseMenuList(buffer);
  24.     
  25.     windowLoc.h = 0;
  26.     windowLoc.v = 0;
  27.     DrawPieMenu(windowLoc,buffer,num_items,0,(int) geneva,9);
  28. }
  29.  
  30.